package com.imooc.springmvc2.conditional;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试类
 * Created by joe on 16-8-11.
 */
public class MainTest {

    public static void main(String[] args){
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConditiConfig.class);
        ListService listService = context.getBean(ListService.class);
        System.out.println(context.getEnvironment().getProperty("os.name")+"系统下的列表命令为:"+listService.showListCmd());
    }
}
